import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/staff/list`,
		get: async function(data,  config={}){
			return await http.get(this.url, data,  config);
		}
	},
	processTmp: {
		url: `${config.API_URL}/staff/process/tmp`,
		get: async function(data,  config={}){
			return await http.get(this.url, data,  config);
		}
	},
	setuse: {
		url: `${config.API_URL}/staff/process/setuse`,
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	salary: {
		url: `${config.API_URL}/staff/salary`,
		get: async function(data,  config={}){
			return await http.get(this.url, data,  config);
		}
	},
	add: {
		url: `${config.API_URL}/staff/add`,
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	del: {
		url: `${config.API_URL}/staff/del`,
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	setManage: {
		url: `${config.API_URL}/staff/setmanage`,
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	setOpenTime: {
		url: `${config.API_URL}/staff/set/opentime`,
		post: async function(data){
			return await http.post(this.url, data);
		}
	}
}